﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace yafc.UI.Components
{
	/*
		class MyControl : Control
		{
			private HotKey hotkey = new HotKey(this);
			
			public MyControl()
			{
				hotkey += new HotKey(Key.Ctrl, Key.A, this.SelectAll);
				hotkey += new HotKey(Key.Ctrl, Key.Enter, this.Post);
			}
		}
	 */
	public class Hotkey
	{
		public delegate void Callback();

		public Hotkey(Control c)
		{
			c.PreviewKeyDown += this.PreviewKeyDown;
		}

		private void PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
		{

		}
	}
}
